<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JS变量</title>
  </head>

  <body>

  </body>
  <script>
    /* 
   JS变量定义变量的方式
   */
    //方式一：声明并赋值
    var age = 12;
    //方式二：先声明，后赋值，
    var name;
    name = "jason";
    //方式三：声明多个变量
    var a, b, c;
    a = 10;
    b = 5;
    c = 8;
  </script>

</html>